import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
// 引入Element Plus样式
import 'element-plus/dist/index.css'
// 引入font-awesome图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 引入ECharts
import VueEcharts from "vue-echarts"
import * as echarts from 'echarts';
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.use(createPinia())
app.use(router)
app.use(ElementPlus)

app.component('v-chart', VueEcharts);

app.mount('#app')
